#coding=utf-8
from django.shortcuts import render_to_response
from django.http import HttpResponse, HttpResponseRedirect
from django.core import serializers
            
def showSystemMessage(message = "出错啦!现在为您跳转到上一页...", next = '/'):
    return render_to_response('system_message.html', locals())
    
def showJson(data = None):
    json_serializer = serializers.get_serializer("json")()
    json_serializer.serialize(data, ensure_ascii=False)
    return HttpResponse(data, mimetype='application/json')